<?php
/**
 * Created by PhpStorm.
 * User: u
 * Date: 2019/1/1
 * Time: 17:58
 */
namespace common\sources\write\buyrechargerecordbank;

class BuyRechargeRecordBankAccess
{
    public function addRechargeRecord($data)
    {
        return Yii::$app->db->createCommand()->insert('task_commod', [
            'bus_id' => $data['bus_id'],
            'amount' => $data['amount'],
            'rech_type' => 2,
            'status' => 2,
            'pay_type' => $data['pay_type'],
            'item_commisse' => $data['item_commisse'],
            'com_task_commisse' => $data['com_task_commisse'],
            'buy_get_commisse' => $data['buy_get_commisse'],
            'public_task_status' => $data['public_task_status'],
            'price' => $data['price'],
            'create_time' => time()
        ])->execute();
    }
}